home *** CD-ROM | disk | FTP | other *** search
/ Chip 2003 December / CHIP_CD_2003-12.iso / macos / pack1 / files / LimeWireOSX.dmg / Install LimeWire.pkg / Contents / Resources / postflight < prev    next >
Text File  |  2003-10-20  |  990b  |  36 lines

  1. #!/bin/sh
  2.  
  3. FROM=/Applications/LimeWire/LimeWire.app
  4. TO=~/Desktop
  5.  
  6. echo "Cleaning up old LimeWire directory from old installer at $2/Applications/LimeWire."
  7. rm -f $2/Applications/LimeWire/*.jar
  8. rm -f $2/Applications/LimeWire/*.jnilib
  9. rm -f $2/Applications/LimeWire/*.log
  10. rm -f $2/Applications/LimeWire/*.txt
  11. rm -f $2/Applications/LimeWire/*.ver
  12. rm -f $2/Applications/LimeWire/*.war
  13. rm -f $2/Applications/LimeWire/*.scpt
  14. rm -f $2/Applications/LimeWire/*.properties
  15. rm -rf $2/Applications/LimeWire/UninstallerData
  16. rm -f $2/Applications/LimeWire/COPYING~
  17.  
  18. echo "Cleaning up a LimeWire.app if it was there."
  19. rm -rf /Applications/LimeWire.app
  20.  
  21. echo "Finding and deleting existing LimeWire alias on desktop."
  22. rm -rf ~/Desktop/LimeWire
  23.  
  24. echo "Linking $FROM to $TO"
  25.  
  26. osascript << EEE
  27. tell application "Finder"
  28.   set p1 to (POSIX file "$TO") as file
  29.   set p2 to (POSIX file "$FROM") as file
  30.   set aliasFile to make new alias at p1 to p2
  31.   set the name of aliasFile to "LimeWire"
  32. end tell
  33. EEE
  34.  
  35. exit 0
  36.